package icu.sehnen.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import icu.sehnen.product.entity.MyPage;
import icu.sehnen.product.entity.Product;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author icu.sehnen
 * @since 2021-04-26
 */
public interface ProductMapper extends BaseMapper<Product> {

    Product getProductById(Long id);

    IPage<Product> findAll(@Param("myPage") MyPage myPage, @Param("product") Product product);
}
